#include <stdio.h>
#include <stdbool.h>

bool search(const int a[], int n, int key){
	int *p;
	for(p = a; p < a+n; ++p){
		if (*p == key){
			return true;
		}
	}
	return false;
}


int main(){
	const int a[] = {1, 4, 5, 6};
	printf("FIND 3 IN ARRAY:%d\n", search(a, 4, 3));
	printf("FIND 4 IN ARRAY:%d\n", search(a, 4, 4));

}
